package com.sparrow.resource.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 为spring托管对象，注入全局配置值
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface InjectGlobalValue {
    /**
     * 全局配置项的key
     * @return
     */
    String value();
}

